package com.baida.retail.tasksystem.dao;

import com.baida.retail.tasksystem.entity.User;
import com.baida.retail.tasksystem.enums.Role;

import java.util.List;

public interface UserDao {
    List<User> getOnlineUsers(int repoId, Role role);

    int setUserOnlineStatus(int uid, boolean isOnline);

    User findByMobile(String mobile);

    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User findByToken(String token);

    List<User> getAll();
}
